package exception;

public class ThrowsDemo {
    public static void main(String[] args) {
        Student  jk = new Student();
        try {
            jk.setAge(160);
        }catch (RuntimeException e){
            System.out.printf("wew");
        }
        System.out.printf("此人年龄为"+jk.getAge()+"岁");
    }

}
